<?php
require_once('../autoload.php');
$class = 'Tv_Arte_Header_Helpers';
$isXmlHttpRequest = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && isset($_GET['event']) && method_exists($class, $_GET['event']));

if ($isXmlHttpRequest) {
	// Traitement des requetes ajax
	ob_clean();
	print call_user_func(sprintf('%s::%s', $class, $_GET['event']));
	exit(0);
}